package com.hxh.controller;

import com.hxh.model.Student;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Controller;

/**
 * @author 兴趣使然黄小黄
 * @version 1.0
 * @date 2023/7/2 10:07
 */
@Controller
public class StudentController {

    @Autowired
    private Student student;

    public void printStudent() {
        System.out.println("studentController | student: " + student);
        Student s = student;
        s.setName("李大明");
        System.out.println("studentController 修改后: " +student);
    }
}
